<%-- 
    Document   : UsersContoling
    Created on : May 5, 2011, 1:28:29 PM
    Author     : Deena
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<style type="text/css">
    @import url( css/Style.css );
</style>


<html:html>
    <title>JETS25JAN forums | Login</title> 
    <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    <meta name='MSSmartTagsPreventParsing' content='TRUE' /> 
    <meta http-equiv='expires' content='-1' /> 
    <meta http-equiv= 'pragma' content='no-cache' /> 
    <meta name="robots" content="nofollow" /> 


    <script type="text/javascript"> 
        <!--
 
        function navHover(which)
        {					
            if (document.getElementById(which.id))
            {
                cur = document.getElementById(which.id).className;
		
                if (cur == 'buttonLarge')
                {
                    document.getElementById(which.id).className = 'buttonLargeHover'
                }
                else if (cur == 'buttonSmall')
                {
                    document.getElementById(which.id).className = 'buttonSmallHover'
                }
            }
        }
 
        function navReset(which)
        {					
            if (document.getElementById(which.id))
            {
                cur = document.getElementById(which.id).className;
		
                if (cur == 'buttonLargeHover')
                {
                    document.getElementById(which.id).className = 'buttonLarge'
                }
                else if (cur == 'buttonSmallHover')
                {
                    document.getElementById(which.id).className = 'buttonSmall'
                }
            }
        }
 
 
        function navJump(where)
        {
            window.location=where;
        }
        -->
    </script> 

</head>

<body>

    <div id='topBar'> 
        <div class='topBarLinks'>
            Welcome <logic:notEmpty name="userBean" scope="session">

                    <bean:write name="userBean" property="username"/>
                    .&nbsp;&nbsp;&middot;&nbsp;&nbsp;
                    <a href="userProfile.jsp">Profile</a>
                </logic:notEmpty>
            &nbsp;&nbsp;&middot;&nbsp;&nbsp;
            <html:link page="/LogoutURL.do">Logout</html:link>

        </div> 
    </div> 

    <div id='pageheader'> 
        <table style="width:100%; height:50px;" border="0" cellpadding="0" cellspacing="0"> 
            <tr> 
                 <td style="width:45%;"><img src="css/1.png" width="216" height="74" border="0"/></td>
                <td style="width:55%;" align="right" class="rightheader"> 

                </td> 
            </tr> 
        </table> 
    </div> 

    <div id="subheader"> 

        <table style="width:100%;" border="0" cellpadding="0" cellspacing="0"> 
            <tr> 
                <td><div class="itempadbig"><div class="breadcrumb"><a href="http://www.cssdrive.com/index.php/forums/">Forum Home</a><span class="breadcrumbspacer">&nbsp;&nbsp;&gt;&nbsp;&nbsp;</span><a href="http://www.cssdrive.com/index.php/forums/member/profile/">Control Panel Home</a><span class="breadcrumbspacer">&nbsp;&nbsp;&gt;&nbsp;&nbsp;</span><span class="currentcrumb">Login</span></div></div></td> 

                <td align="right" valign="middle">



                    <html:form action="/Search.do"> 
                        <div> 
                            <input type="hidden" name="XID" value="82f0ac26bfac8a5c7ee2fb21ec9708902520d712" /> 
                            <input type="hidden" name="board_id" value="1" /> 
                            <input type="hidden" name="site_id" value="1" /> 
                        </div> 
                        <table border="0" cellpadding="0" cellspacing="0" align="right"> 
                            <tr> 
                                <td><div class="smallLinks"><b>Search</b>&nbsp;&nbsp;</div></td> 
                                <td><html:text property="search" size="20" maxlength="80" style="width:130px"></html:text></td> 
                                <td>&nbsp;<html:submit value="search"></html:submit></td> 
                            </tr>
                        </table>
                    </html:form></td> 



            </tr> 
        </table> 
    </div> 

    <div id="content"> 




        <table border="2" class="tableBorderLeft" cellpadding="0" cellspacing="0" border="0" style="width:100%;">
            <tr>
                <td class="profileHeadingBG"  align="center">User Name</td><td class="profileHeadingBG"  align="center"> Banned</td>
                <td class="profileHeadingBG"  align="center">Suspend date</td><td class="profileHeadingBG"  align="center">Mod Action</td>
            </tr>
            <logic:iterate name="DisplayUsersFormBean" property="jfmembers" id="jfmember">
                <tr>

                    <td class="tableCellTwo" style="width:10%;">
                        <html:link action="/GetUserAction.do" paramName="jfmember" paramProperty="username" paramId="jfmember">
                            <bean:write name="jfmember" property="username"/>
                        </html:link></td>

                    <td class="tableCellTwo" style="width:20%;">
                        
                        <logic:equal name="jfmember" property="banned" value="0">
                            <html:text name="jfmember" value="" property="banned" disabled="true"></html:text>
                        </logic:equal>
                        <logic:equal name="jfmember" property="banned" value="1">
                            <html:text name="jfmember" value="banned"  property="banned" disabled="true"></html:text>
                        </logic:equal>
                        </td>

                    <td class="tableCellTwo" style="width:20%;">

                        <logic:notPresent name="jfmember" property="unsuspenddate">
                            <html:text name="jfmember" value="" property="unsuspenddate" disabled="true"></html:text>
                        </logic:notPresent>
                        <logic:present name="jfmember" property="unsuspenddate">
                        <html:text name="jfmember" value="suspended"  property="unsuspenddate" disabled="true"></html:text>
                        </logic:present>

                    </td>
                    <td class="tableCellTwo" style="width:30%;">
                        <html:form action="/ModActions.do">
                            <html:hidden name="jfmember" property="username"></html:hidden>
                            <html:hidden name="jfmember" property="memberId"></html:hidden>
                            <html:text property="msg"></html:text>
                            
                            <html:hidden name="jfmember" property="banned"></html:hidden>

                            <logic:equal name="jfmember" property="banned" value="0">
                                <html:submit value="Ban"  property="mod"></html:submit>
                            </logic:equal>
                             <logic:equal name="jfmember" property="banned" value="1">
                                <html:submit value="UnBan"  property="mod"></html:submit>
                            </logic:equal>

                            <logic:notPresent name="jfmember" property="unsuspenddate">
                                <html:submit value="Suspend" property="mod"></html:submit>
                            </logic:notPresent>
                            <logic:present name="jfmember" property="unsuspenddate">
                                <html:submit value="UnSuspend" property="mod"></html:submit>
                            </logic:present>
 
                            <html:submit value="Warn" property="mod"></html:submit>


                        </html:form>
                  
                </tr>
            </logic:iterate>
        </table>
        
    </div>



            
</body>
</html:html>
